package com.cookpan001
{
	import flash.display.Sprite;
	import flash.events.Event;
	
	/**
	 * ...
	 * @author cookpan001
	 */
	public class App extends Sprite 
	{
		
		public function App():void 
		{
			if (stage)
			{
				init();
			}
			else
			{
				addEventListener(Event.ADDED_TO_STAGE, init);
			}
		}
		
		private function init(e:Event = null):void 
		{
			removeEventListener(Event.ADDED_TO_STAGE, init);
			// entry point
			ApplicationFacade.getInstance().startup(this);
		}
		
	}
	
}